<template>
    <div class="Box">
        <!-- <div class="Title">
            江苏省人社厅技能大赛
            <div class="judgeOperation">
                <div class="judge"></div>
                <span class="judgeName">裁判001</span>
            </div>
        </div> -->
        <div class="content">
            <div class="mainBody">
                <a-tabs v-model:activeKey="activeKey" type="card">
                    <a-tab-pane key="1" tab="工单一">
                        <!-- 故障现象 -->
                        <div class="faultPhenomenon">
                            <div class="con_title">
                                <img src="/public/images/装饰.png">故障现象
                                <div class="score">得分:<input type="text">分</div>
                            </div>
                            <div class="con_txt"></div>
                            <div class="imgBox">
                                <div class="imgPic"></div>
                            </div>
                        </div>
                        <!-- 故障码 -->
                        <div class="faultCode">
                            <div class="con_title">
                                <img src="/public/images/装饰.png">故障码(读取故障码后，进行清除故障码，记录再次读取的故障码)
                                <div class="score">得分:<input type="text">分</div>
                            </div>
                            <div class="con_txt"></div>
                        </div>
                        <!-- 数据流 -->
                        <div class="dataflow">
                            <div class="con_title">
                                <img src="/public/images/装饰.png">数据流(记录关键数据流，如不需要可不记录)
                                <div class="score">得分:<input type="text">分</div>
                            </div>
                            <table>
                                <thead>
                                    <th>系统</th>
                                    <th>名称</th>
                                    <th>值</th>
                                    <th>单位</th>
                                    <th>判断</th>
                                </thead>
                                <tr>
                                    <td>1</td>
                                    <td>2</td>
                                    <td>3</td>
                                    <td>4</td>
                                    <td class="estimate">
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'abnormal' : 'normal'"></div><span>正常</span>
                                        </div>
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'normal' : 'abnormal'"></div><span>异常</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>11</td>
                                    <td>22</td>
                                    <td>33</td>
                                    <td>44</td>
                                    <td>
                                    <td class="estimate">
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'abnormal' : 'normal'"></div><span>正常</span>
                                        </div>
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'normal' : 'abnormal'"></div><span>异常</span>
                                        </div>
                                    </td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>111</td>
                                    <td>222</td>
                                    <td>333</td>
                                    <td>444</td>
                                    <td>
                                    <td class="estimate">
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'abnormal' : 'normal'"></div><span>正常</span>
                                        </div>
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'normal' : 'abnormal'"></div><span>异常</span>
                                        </div>
                                    </td>
                                    </td>
                                </tr>
                            </table>
                            <button class="addBtn" @click="Add">增加</button>
                        </div>
                        <!-- 故障范围 -->
                        <div class="faultCoverage">
                            <div class="con_title">
                                <img src="/public/images/装饰.png">故障范围
                                <div class="score">得分:<input type="text">分</div>
                            </div>
                            <div class="con_txt"></div>
                        </div>
                        <!-- 故障检测 -->
                        <div class="dataflow">
                            <div class="con_title">
                                <img src="/public/images/装饰.png">故障检测(根据故障范围进行对应端子检测并判断是否正常)
                                <div class="score">得分:<input type="text">分</div>
                            </div>
                            <table>
                                <thead>
                                    <th>监测点</th>
                                    <th>测量值</th>
                                    <th>标准值</th>
                                    <th>判断</th>
                                </thead>
                                <tr>
                                    <td>1</td>
                                    <td>2</td>
                                    <td>3</td>
                                    <td class="estimate">
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'abnormal' : 'normal'"></div><span>正常</span>
                                        </div>
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'normal' : 'abnormal'"></div><span>异常</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>11</td>
                                    <td>22</td>
                                    <td>33</td>
                                    <td>
                                    <td class="estimate">
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'abnormal' : 'normal'"></div><span>正常</span>
                                        </div>
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'normal' : 'abnormal'"></div><span>异常</span>
                                        </div>
                                    </td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>111</td>
                                    <td>222</td>
                                    <td>333</td>
                                    <td>
                                    <td class="estimate">
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'abnormal' : 'normal'"></div><span>正常</span>
                                        </div>
                                        <div style="display: flex;margin-top: 6px;">
                                            <div :class="isNormal ? 'normal' : 'abnormal'"></div><span>异常</span>
                                        </div>
                                    </td>
                                    </td>
                                </tr>
                            </table>
                            <button class="addBtn" @click="Add">增加</button>
                        </div>
                        <!-- 波形 -->
                        <div class="faultCode">
                            <div class="con_title">
                                <img src="/public/images/装饰.png">波形(记录故障点异常波形，如不需要可不记录)
                                <div class="score">得分:<input type="text">分</div>
                            </div>
                            <div class="con_txt"></div>
                        </div>
                        <!-- 故障点 -->
                        <div class="faultCode">
                            <div class="con_title">
                                <img src="/public/images/装饰.png">故障点(记录最终故障点及故障类型，线束故障或元器件故障)
                                <div class="score">得分:<input type="text">分</div>
                            </div>
                            <div class="con_txt"></div>
                        </div>
                    </a-tab-pane>
                    <a-tab-pane key="2" tab="工单二">
                        <p>Content of Tab Pane 2</p>
                        <p>Content of Tab Pane 2</p>
                        <p>Content of Tab Pane 2</p>
                    </a-tab-pane>
                    <a-tab-pane key="3" tab="工单三">
                        <p>Content of Tab Pane 3</p>
                        <p>Content of Tab Pane 3</p>
                        <p>Content of Tab Pane 3</p>
                    </a-tab-pane>
                </a-tabs>
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const activeKey = ref('1');
const isNormal = ref(true)
function Add() {

}
</script>


<style scoped>
.Box {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

/* .Title {
    width: 1920px;
    height: 80px;
    line-height: 80px;
    font-size: 32px;
    background: rgba(255, 255, 255, 1);
    padding-left: 40px;
    padding-right: 21px;
    letter-spacing: 3px;
    display: flex;
    margin-bottom: 53px;
    box-shadow: 0px 6.03px 15.08px rgba(78, 89, 105, 0.06);
} */

/* .judgeOperation {
    margin-left: auto;
    display: flex;
} */

/* .judge {
    width: 54px;
    height: 54px;
    background-image: url('/public/images/裁判.png');
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 13px;
}

.judgeName {
    font-size: 24px;
    margin: 0 10px;
} */

.content {
    width: 1855px;
    height: 820px;
    margin-left: 38px;
    overflow-y: scroll;
}

.content::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
}

.content::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 10px;
    background: #edeff3;
}

.mainBody {
    width: 1840px;
    height: 100%;
    padding-bottom: 74px;
}

:deep().ant-tabs-tab {
    width: 147px;
    height: 72px;
    font-size: 25px;
    text-align: center;
}

:deep().ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab {
    margin-left: 0;
}

:deep().ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab {
    border-radius: 0px;
}

:deep().ant-tabs-top>.ant-tabs-nav::before {
    border-bottom: 1px solid #c9cdd6;
}

:deep().ant-tabs-card>.ant-tabs-nav .ant-tabs-tab {
    background: #ebecf0;
    border-left: 1px solid #c9cdd6;
    border-right: 1px solid #c9cdd6;
    border-bottom: 1px solid #c9cdd6;
}

:deep().ant-tabs-card>.ant-tabs-nav .ant-tabs-tab-active {
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #c9cdd6;
    transition: none;
}

:deep().ant-tabs-top>.ant-tabs-nav {
    margin: 0px;
}

.faultPhenomenon {
    width: 100%;
    height: 475.5px;
    background-color: #ffffff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 37px 50px 0px;
}

.con_title {
    font-size: 28px;
    margin-bottom: 34px;
    display: flex;
}

.con_title>img {
    width: 24px;
    height: 24px;
    margin-right: 18px;
    margin-top: 13px;
}

.score {
    margin-left: auto;
    color: red;
}

.score>input {
    width: 77px;
    height: 50px;
    margin: 0px 5px;
    border: 3px solid red;
    border-radius: 6px;
    padding: 0 15px;
    text-align: center;
}

.score>input:focus-visible {
    outline: none;
}

.con_txt {
    width: 1744px;
    height: 195px;
    background-color: #f2f3f5;
    border-radius: 12px;
}

.faultCode {
    width: 100%;
    height: 475.5px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 37px 50px 0px;
    margin-top: 45px;
}

.dataflow {
    width: 100%;
    height: 679.5px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 37px 50px 0px;
    margin-top: 45px;
}

table {
    width: 100%;
    height: 210px;
    border-collapse: separate;
    border-spacing: 30px 33px;
}

thead {
    font-size: 26px;
}

tr {
    font-size: 21px;
    text-align: center;
}

td {
    width: 380px;
    height: 46px;
    border-radius: 6px;
    background-color: #f2f3f5;
}

.addBtn {
    width: 276px;
    height: 46px;
    background-color: #4080ff;
    border-radius: 6px;
    outline: none;
    border: none;
    margin-left: 30px;
    font-size: 27px;
    color: #ffffff;
}

.estimate {
    /* width: 29%; */
    width: 452px;
    display: flex;
    justify-content: space-around;
    background-color: #ffffff;

}

.estimate>span {
    margin: 34px;
}

.normal {
    width: 35px;
    height: 35px;
    background-image: url('/public/images/默认.png');
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 60px;
}

.abnormal {
    width: 35px;
    height: 35px;
    background-image: url('/public/images/勾选.png');
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 60px;
}

.faultCoverage {
    width: 100%;
    height: 352.5px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 37px 50px 0px;
    margin-top: 45px;
}

.imgBox {
    width: 480px;
    height: 120px;
    background-color: #4080ff;
    margin-top: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
}
</style>